package com.unknowpupil.web.domain;

import com.unknowpupil.web.base.AbstractBaseDomain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import tk.mybatis.mapper.annotation.Version;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;

@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Base extends AbstractBaseDomain {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    /**
     * 状态
     */
    @NotNull
    private Integer status;



    /**
     * 备注
     */
    private String remark;

    /**
     * 版本号
     */
    @Version
    private Long version = 0L;


}
